home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 2010 Software/Programs / PCGuia_programas.iso / Software / Internet / FeedDemon / FeedDemonInstall.exe / {app} / Data / Styles / Photo Strip.fdxsl2 < prev    next >
Encoding:
Extensible Markup Language  |  2009-06-03  |  5.4 KB  |  165 lines

  1. <?xml version="1.0"?>
  2.  
  3. <xsl:stylesheet version="1.0"
  4.     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  5.     xmlns:fd="http://www.bradsoft.com/feeddemon/xmlns/1.0/">
  6.  
  7. <xsl:output method="html"
  8.     doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
  9.     doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
  10.  
  11. $INCLUDE(commonvar.inc)$
  12.  
  13. <fd:capabilities showExcerpts="false" toggleExcerpts="false" collapsePosts="false" itemGrouping="false" />
  14.  
  15. <xsl:variable name="img_link-new" select="'$IMAGEDIR$linknew.gif'"/>
  16. <xsl:variable name="lang_hint_open_new" select="'$LANG_CONST(S_NewsHintOpenInNewTab)$'"/>
  17. <xsl:variable name="feed-type" select="newspaper/channel/@feedType"/>
  18.  
  19. <xsl:variable name="common-styles">
  20.     <style type="text/css">
  21.         $INCLUDE(commonstyles.css)$
  22.         
  23.         body {
  24.             font-size: $FONT-SIZE-NEWSPAPER$;
  25.             font-family: "$FONT-NAME-NEWSPAPER$", "Trebuchet MS", Tahoma, sans-serif;            
  26.             color: white;
  27.             margin: 0;
  28.             text-align: center;
  29.             background-color: #555555;
  30.             filter: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=#555555,endColorStr=#353535);
  31.         }
  32.         
  33.         a { color: white;  }
  34.         a:hover { color: #00CCC9; }
  35.         a.notcached {
  36.             text-decoration: none ! important;
  37.             border-bottom: 1px dotted #FF8E8E ! important;
  38.         }
  39.         
  40.         div.newspapertitle {
  41.             margin-top: 20px;
  42.         }
  43.         div.newspapertitle, div.newsitemtitle {            
  44.             font-size: x-large;
  45.             font-weight: bold;
  46.             width: 100%;            
  47.             filter:progid:DXImageTransform.Microsoft.DropShadow(color=black, offX=2, offY=2);
  48.         }
  49.         
  50.         div#container { 
  51.             margin-top: 20px;
  52.             padding-bottom: 20px;
  53.         }
  54.         div.newsitem, div.thumbnail { 
  55.             vertical-align: middle;
  56.             padding: 14px 8px;
  57.         }
  58.         div.thumbnail { 
  59.             display: inline;
  60.          }
  61.         div.newsitem img, div.thumbnail img {
  62.             border: 3px solid white;
  63.             filter:progid:DXImageTransform.Microsoft.DropShadow(color=#353535, offX=5, offY=5);
  64.         }
  65.         div.newsitem a:hover img, div.thumbnail a:hover img { 
  66.             border: 3px solid red;
  67.         }
  68.         div.newsitemtitle { margin-bottom: 20px; }
  69.         img.icon { border: none; }
  70.         div#noitems { 
  71.             color: white; 
  72.         }
  73.         #fdfocusedpost {
  74.             background-color: #6A6A6A;
  75.         }                
  76.         div.newsitem img {
  77.             /* override img align when assigned */
  78.             vertical-align: baseline;
  79.         }        
  80.         
  81.     </style>
  82. </xsl:variable>
  83.  
  84. <xsl:template match="newspaper">
  85.     <xsl:variable name="folderId" select="@folderId"/>
  86.     
  87.     <html>
  88.     <head>
  89.         <title>Newspaper (<xsl:value-of select="title" disable-output-escaping="yes"/>)</title>
  90.         $INCLUDE(metatrans.inc)$
  91.         <xsl:copy-of select="$common-styles"/>        
  92.     </head>
  93.     <body>
  94.         <xsl:if test="title and $newspaper-type != 'newsitem'">        
  95.             <div class="newspapertitle"><xsl:value-of select="title" disable-output-escaping="yes"/></div>
  96.         </xsl:if>
  97.         <div id="container">            
  98.             <xsl:if test="$item-count=0"><div id="noitems">$LANG_CONST(S_NoItemsInNewspaperFilter)$</div></xsl:if>
  99.             <xsl:for-each select="channel/item">
  100.                 <xsl:sort select="@sortIndex" data-type="number"/>
  101.                 <xsl:apply-templates select="."/>
  102.             </xsl:for-each>
  103.         </div>        
  104.     </body>
  105.     </html>    
  106. </xsl:template>
  107.  
  108. <!-- news item template -->
  109. <xsl:template match="item">
  110.     <xsl:variable name="feedId" select="@feedId"/>
  111.     <xsl:variable name="postId" select="@postId"/>
  112.     <xsl:variable name="itemtitle"><xsl:value-of select="title" disable-output-escaping="yes"/></xsl:variable>
  113.     
  114.     <div class="fdnewsitem" name="{$feedId}:{$postId}">
  115.         <xsl:choose>
  116.             <!-- show only images when not a single newsitem -->
  117.             <xsl:when test="($newspaper-type != 'newsitem')">
  118.                 <xsl:choose>
  119.                     <!-- use mediaRSS thumbnail if available (test with non-synched Flickr feeds) -->
  120.                     <xsl:when test="thumbnail/@url">
  121.                         <div class="thumbnail">
  122.                             <xsl:variable name="thumbnail-url" select="thumbnail/@url"/>
  123.                             <a href="fdaction:?action=gotopost&postId={$postId}&feedId={$feedId}" title="{$itemtitle}">
  124.                                 <img src="{$thumbnail-url}" alt="{$itemtitle}" />
  125.                             </a>
  126.                         </div>
  127.                     </xsl:when>
  128.                     <!-- otherwise, show full description -->
  129.                     <xsl:otherwise>
  130.                         <div class="newsitem">
  131.                             <a href="fdaction:?action=gotopost&postId={$postId}&feedId={$feedId}" title="{$itemtitle}">
  132.                                 <xsl:value-of select="description" disable-output-escaping="yes"/>
  133.                             </a>
  134.                         </div>
  135.                     </xsl:otherwise>
  136.                 </xsl:choose>
  137.             </xsl:when>
  138.             <xsl:otherwise>
  139.                 <div class="newsitemtitle">
  140.                     <a href="fdaction:?action=gotopostlink&postId={$postId}&feedId={$feedId}" title="{$itemtitle}">
  141.                         <xsl:value-of select="$itemtitle" disable-output-escaping="yes"/>
  142.                     </a>
  143.                 </div>
  144.                 <div class="newsitem">
  145.                     <xsl:value-of select="description" disable-output-escaping="yes"/>
  146.                 </div>
  147.                 <div class="footer">
  148.                     <xsl:value-of select="dateDisplay"/>
  149.                     <xsl:if test="author">
  150.                          | <xsl:value-of select="author" />
  151.                     </xsl:if>            
  152.                     <xsl:if test="source and source/@htmlUrl">
  153.                         <xsl:variable name="srclink" select="source/@htmlUrl"/>
  154.                          | <a href="{$srclink}"><xsl:value-of select="source"/></a>
  155.                     </xsl:if>
  156.                     <xsl:if test="link">
  157.                          | <a class="icon" href="fdaction:?action=gotopostlink&newtab=1&feedid={$feedId}&postid={$postId}" title="{$lang_hint_open_new}"><img src="{$img_link-new}" class="icon" align="absmiddle" /></a>
  158.                     </xsl:if>            
  159.                 </div>    
  160.             </xsl:otherwise>
  161.         </xsl:choose>
  162.     </div>
  163. </xsl:template>
  164.  
  165. </xsl:stylesheet>